//package com.retailcloud.searchservice.config;
//import com.retailcloud.searchservice.utils.ElasticsearchClientUtil;
//import org.elasticsearch.client.RestHighLevelClient;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PreDestroy;
//import javax.annotation.Resource;
//
//@Component
//public class ElasticsearchClientManager {
//
//    @Resource
//    private ElasticsearchClientUtil elasticsearchClientUtil;
//
//    @PreDestroy
//    public void onDestroy() {
//        elasticsearchClientUtil.closeClient();
//    }
//}
